﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication2
{
    class car:repair
    {
        public int carnum;
        public string carname { get; set; }

        public string carcolor { get; set; }

        public  void action()
        {
            if (carnum >= 4)
            {
                Console.WriteLine("车子可以跑");
            }
            else {
                repair.repairecare();
                Console.WriteLine("请输入修车厂的名字：");
                repairename = Console.ReadLine();
                Console.WriteLine("请输入修车厂的地址");
                repaireaddress = Console.ReadLine();
                Console.WriteLine("请输入修车厂的电话");
                repairephone = int.Parse(Console.ReadLine());



            }
            Console.WriteLine("结束");
        }
       
    }
}
